package cevent.source.cloudcenter.system.controller.client;/**
 * Created by Cevent on 2021/7/18.
 */

import cevent.source.cloudcenter.server.dto.ResponseDataDto;
import cevent.source.cloudcenter.server.service.SiteLinkService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cevent
 * @description 客户端友情链接获取
 * @date 2021/7/18 11:02
 */
@RestController
@RequestMapping("/client/sitelink")
public class ClientSiteSetController {
    private static final Logger LOG= LoggerFactory.getLogger(ClientSiteSetController.class);
    public static final String BUSINESS_NAME="客户端友情链接模块";

    @Autowired
    SiteLinkService siteLinkService;

    @GetMapping("/list")
    public ResponseDataDto list() {
        ResponseDataDto responseData = new ResponseDataDto();
        responseData.setResponseData(siteLinkService.siteLinkDtoList());
        return responseData;
    }
}
